{% extends 'user_base.html' %} 
{% block user_content %}
    <div class="right_content clearfix">
        <div class="info_con clearfix">
            <h3 class="common_title2">基本信息</h3>
            <ul class="user_info_list">
                <li><span>用户名：</span>{{ request.user.username }}</li>
                <li><span>联系方式：</span>{{ request.user.telephone_number }}</li>
                <li><span>联系地址：</span>{{ request.user.address }}</li>
                <li><span>城市：</span>{{ request.user.city }}</li>
                <li><span>性别：</span>{{ request.user.get_gender_display }}</li>
                <li><span>性别：</span>{{ request.user.register_date|date:"Y-m-d" }}</li>
            </ul>
        </div>

        <h3 class="common_title2">最近浏览</h3>
        <div class="has_view_list">
            <ul class="goods_type_list clearfix">
                {% for goods in goods_info %}
                    <li>
                        <a href="{% url 'shop:detail' goods.id %}"><img src="{{ MEDIA_URL }}{{ goods.images}}"></a>
                        <h4><a href="{% url 'shop:detail' goods.id %}">{{ goods.name }}</a></h4>
                        <div class="operate">
                            <span class="prize">￥{{ goods.price }}</span>
                            <span class="unit">{{ goods.price }}/{{ goods.uint }}</span>
                            <a href="#" class="add_goods" title="加入购物车"></a>
                        </div>
                    </li>
                {% endfor %}

            </ul>
        </div>
    </div>
{% endblock user_content %}